package qgs.ddjdispachingsystem.ddj.wcs.enums;

/**
 * @Author: 蔡翔
 * @Date: 2019/10/14 10:06
 * @Version 1.0
 */
public enum IOServerEnum implements CodeEnum {
    /**
     *堆垛机
     **/
    Current_Layer("Current_Layer","堆垛机当前层"),
    Current_Column("Current_Column","堆垛机当前列"),
    Current_Position("Current_Position","堆垛机当前位号"),
    Walking_Run("Walking_Run","行走（1：正在行走，0：停止）"),

    Walking_Fault("Walking_Fault","行走故障（通讯，电机总故障）"),
    Lift_Fault("Lift_Fault","升降故障"),
    Fork_Fault("Fork_Fault","货叉故障"),
    Conflict_Fault("Conflict_Fault","货物冲突报警（放货；放货位有货，取货：取货位无货        放货；平台无货，取货：平台有货）"),
    Target_Position("Target_Position","放货位号（终点）"),
    Take_Position("Take_Position","取货位号（起点）"),
    RESET("RESET","清楚故障"),
    L_Start("L_Start","启动"),
    L_STOP("L_STOP","软停止"),
    Device_Status("Device_Status","设备状态：1.设备空闲 2.正在执行 3.执行完毕 4.设备故障（wcs检测到3执行完毕后参数给88，后我会把参数置为1空闲，wcs检测设备空闲再推送下个任务）"),
    Control_Mode("Control_Mode","控制方式（5：远程模式    其他：触摸屏模式）"),

    PC_Status("PC_Status","检测到Device_Status为3（设备空闲）时数据置88"),

    Reset_task("Reset_task",""),
    Submit_task("Submit_task",""),



    /**
     *称重plc
     **/
    Cargo_First_Weight("Frist_Weight","第一平台重量"),
    Cargo_Second_Weight("Second_Weight","第二平台重量"),
    Cargo_Third_Weight("Third_Weight","第三平台重量"),
    Cargo_Fourth_Weight("Fourth_Weight","第四平台重量"),
    Cargo_Fifth_Weight("Fifth_Weight","第五平台重量"),

    Cargo_First_Height("Frist_Height","第一平台高度"),
    Cargo_Second_Height("Second_Height","第二平台高度"),
    Cargo_Third_Height("Third_Height","第三平台高度"),
    Cargo_Fourth_Height("Fourth_Height","第四平台高度"),
    Cargo_Fifth_Height("Fifth_Height","第五平台高度"),

    //第n平台货物报警（1.超重报警 2.无货报警 4.左右偏差报警 8.前后偏差报警 16.超高报警）
    Cargo_First_Fault("Frist_Fault","第一平台货物报警"),
    Cargo_Second_Fault("Second_Fault","第二平台货物报警"),
    Cargo_Third_Fault("Third_Fault","第三平台货物报警"),
    Cargo_Fourth_Fault("Fourth_Fault","第四平台货物报警"),
    Cargo_Fifth_Fault("Fifth_Fault","第五平台货物报警"),

    //第n平台传感器报警（1.称重传感器报警 2.限高1传感器报警 4.限高2传感器报警 8.前偏传感器报警 16.后偏传感器报警 32.左偏传感器报警 64.右偏传感器报警 。。。。）
    Cargo_Frist_Sensor_Fault("Frist_Sensor_Fault","第一平台传感器报警"),
    Cargo_Second_Sensor_Fault("Second_Sensor_Fault","第二平台传感器报警"),
    Cargo_Third_Sensor_Fault("Third_Senso_Fault","第三平台传感器报警"),
    Cargo_Fourth_Sensor_Fault("Fourth_Sensor_Fault","第四平台传感器报警"),
    Cargo_Fifth_Sensor_Fault("Fifth_Sensor_Fault","第五平台传感器报警"),

    Cargo_First_IN_Start("Frist_IN_Start","第一平台入库开始"),
    Cargo_Second_IN_Start("Second_IN_Start","第二平台入库开始"),
    Cargo_Third_IN_Start("Third_IN_Start","第三平台入库开始"),
    Cargo_Fourth_IN_Start("Fourth_IN_Start","第四平台入库开始"),
    Cargo_Fifth_IN_Start("Fifth_IN_Start","第五平台入库开始"),

    //出库开始  只是 发出报警 来提示工人 来取货
    Cargo_First_OUT_Start("Frist_OUT_Start","第一平台出库开始"),
    Cargo_Second_OUT_Start("Second_OUT_Start","第二平台出库开始"),
    Cargo_Third_OUT_Start("Third_OUT_Start","第三平台出库开始"),
    Cargo_Fourth_OUT_Start("Fourth_OUT_Start","第四平台出库开始"),
    Cargo_Fifth_OUT_Start("Fifth_OUT_Start","第五平台出库开始"),

    Cargo_Frist_Confirm_Failure("Frist_Confirm_Failure","第一平台清除故障"),
    Cargo_Second_Confirm_Failure("Second_Confirm_Failure","第二平台清除故障"),
    Cargo_Third_Confirm_Failure("Third_Confirm_Failure","第三平台清除故障"),
    Cargo_Fourth_Confirm_Failure("Fourth_Confirm_Failure","第四平台清除故障"),
    Cargo_Fifth_Confirm_Failure("Fifth_Confirm_Failure","第五平台清除故障"),

    //end
    Cargo_Frist_End("Frist_End","第一平台结束任务"),
    Cargo_Second_End("Second_End","第二平台结束任务"),
    Cargo_Third_End("Third_End","第一平台结束任务"),
    Cargo_Fourth_End("Fourth_End","第一平台结束任务"),
    Cargo_Fifth_End("Fifth_End","第一平台结束任务"),



    Cargo_Height("Cargo_Height","货物高度"),
    Cargo_Weight("Cargo_Weight","货物重量"),

    Target_Layer("Target_Layer","目标层"),
    Target_Columns("Target_Columns","目标列"),
    ;
    private String collectionPointName;
    private String desc;
    IOServerEnum(String collectionPointName,String desc){
        this.collectionPointName = collectionPointName;
        this.desc = desc;
    }
    @Override
    public String getCollectionPointName() {
        return collectionPointName;
    }

}
